package com.gzc.just.play.last.war.loginserver.sdk.model;

/**
 * SDK用户模型
 */
public class SDKUser {
    private long userId;
    private String username;
    private String nickname;
    private String email;
    private String phone;
    private String avatar;
    private UserPlatform platform;
    private String deviceId;
    private String openId;
    private String token;
    private String sessionId;
    private long createTime;
    private long lastLoginTime;
    private boolean online;
    private String ip;
    private String location;
    private String deviceInfo;
    
    public SDKUser() {
        this.createTime = System.currentTimeMillis();
        this.lastLoginTime = createTime;
        this.online = true;
    }
    
    // Getters and Setters
    public long getUserId() {
        return userId;
    }
    
    public void setUserId(long userId) {
        this.userId = userId;
    }
    
    public String getUsername() {
        return username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }
    
    public String getNickname() {
        return nickname;
    }
    
    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
    
    public String getEmail() {
        return email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
    
    public String getPhone() {
        return phone;
    }
    
    public void setPhone(String phone) {
        this.phone = phone;
    }
    
    public String getAvatar() {
        return avatar;
    }
    
    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
    
    public UserPlatform getPlatform() {
        return platform;
    }
    
    public void setPlatform(UserPlatform platform) {
        this.platform = platform;
    }
    
    public String getDeviceId() {
        return deviceId;
    }
    
    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }
    
    public String getOpenId() {
        return openId;
    }
    
    public void setOpenId(String openId) {
        this.openId = openId;
    }
    
    public String getToken() {
        return token;
    }
    
    public void setToken(String token) {
        this.token = token;
    }
    
    public String getSessionId() {
        return sessionId;
    }
    
    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }
    
    public long getCreateTime() {
        return createTime;
    }
    
    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }
    
    public long getLastLoginTime() {
        return lastLoginTime;
    }
    
    public void setLastLoginTime(long lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }
    
    public boolean isOnline() {
        return online;
    }
    
    public void setOnline(boolean online) {
        this.online = online;
    }
    
    public String getIp() {
        return ip;
    }
    
    public void setIp(String ip) {
        this.ip = ip;
    }
    
    public String getLocation() {
        return location;
    }
    
    public void setLocation(String location) {
        this.location = location;
    }
    
    public String getDeviceInfo() {
        return deviceInfo;
    }
    
    public void setDeviceInfo(String deviceInfo) {
        this.deviceInfo = deviceInfo;
    }
    
    @Override
    public String toString() {
        return "SDKUser{" +
                "userId=" + userId +
                ", username='" + username + '\'' +
                ", platform=" + platform +
                ", online=" + online +
                '}';
    }
}